package com.wym.charging.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author WangYimin 2024年12月25日 22:39:31
 */
@Data
public class UserVo {
    @Schema(description = "用户ID")
    private Integer id;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "归属小区")
    private String belongingCommunity;
    @Schema(description = "账户余额")
    private BigDecimal accountBalance;
    @Schema(description = "赠送余额")
    private BigDecimal giftBalance;
    @Schema(description = "赠送时长 单位：分钟")
    private Integer giftDuration;
    @Schema(description = "是否包月 0否 1是")
    private Boolean monthlySubscription;
    @Schema(description = "包月剩余时长 单位：分钟")
    private Integer remainingTime;
    @Schema(description = "包月结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime subscriptionEndTime;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Schema(description = "token")
    private String token;
}
